package org.abacus.platform.data;

import java.util.List;
import java.util.Map;

public interface Store {
	void open();

	List<Map<String, Object>> getStore();

	List<Key> getKeys();

	void close();

	public static interface Key {
		String getLabel();

		void setLabel(String label);

		String getType();

		void setType(String type);

		String getKey();

		void setKey(String key);
	}

	public static class KeyBean implements Key {
		private String label;
		private String type;
		private String key;

		public String getLabel() {
			return label;
		}

		public void setLabel(String label) {
			this.label = label;
		}

		public String getType() {
			return type;
		}

		public void setType(String type) {
			this.type = type;
		}

		public String getKey() {
			return key;
		}

		public void setKey(String key) {
			this.key = key;
		}

		@Override
		public String toString() {
			return "KeyAliasBean [label=" + label + ", type=" + type + ", key=" + key + "]";
		}
	}
}
